<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>会员中心</title>
  <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
  <meta content="yes" name="apple-mobile-web-app-capable"/>
  <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
  <meta content="telephone=no" name="format-detection"/>
  <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="__STATIC__/layer/layer.js"></script>
</head>
<body>
    <div>
        <p>{$user.realname}</p>
        <p>{$user.pay_points}</p>
        <p>{$user.user_money}</p>
    </div>
    {foreach name="list" item="v"}
        <div style="border:1px solid black;">
            <span>{$v.charge_cn}&nbsp;&nbsp;{$v.addtime|date="Y-m-d",###}</span>
            <span>
                {if condition="$v.chargetype eq 1"}
                    -{$v.amount}
                {elseif condition="$v.chargetype eq 2" /}
                    +{$v.amount}
                {elseif condition="$v.chargetype eq 3" /}
                    +{$v.amount}
                {/if}
            </span>
        </div>
    {/foreach}

</body>
</html>